package com.example.demo.controller;

import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import com.example.demo.annotation.NoRepeatSubmit;
import com.example.demo.utils.ApiResult;


/**
 * @功能描述 测试Controller
 * @author www.gaozz.club
 * @date 2018-08-26
 */
@RestController
public class TestController {
	
	@RequestMapping("/test")
	@NoRepeatSubmit
	public Object test(String id) throws Exception {
		return ApiResult.ok(id);
	}
	
	@NoRepeatSubmit
	@RequestMapping("/test1")
	public Object test1(String id) {
		 return ApiResult.fail("执行失败");
	}

}
